
<ul class="pager">
    %if pagination.pages[0]>=10: ##visible if that
      <li >
	        <a href="?page=${pagination.page-1}&size=${pagination.size}">&larr;</a>
      </li>
    %endif

  %for i in pagination.pages:
    %if i==pagination.page:
      <li class='disabled' >
        <a style="background:#eee;" href="?page=${i}&size=${pagination.size}#">${i}</a>
      </li>
    %else:
      <li>
        <a href="?page=${i}&size=${pagination.size}">${i}</a>
      </li>
    %endif
  %endfor

  %if 10==len(pagination.pages):
  <li>
    <a href="?page=${pagination.page+1}&size=${pagination.size}">&rarr;</a>
  </li>
  %endif
</ul>

